import request from "@/utils/request";

export function getAllDisease(){
  return request({
    url: 'disease/getAllDisease',
    method: 'get'
  })
}
export function getAllDiseaseMsg(query){
  return request({
    url: 'disease/getAllDiseaseByPage/'+ query.page + '/' + query.limit,
    method: 'get'
  })
}

export function insertDiseaseType(data){
  return request({
    url: 'disease/insertDiseaseType',
    method: 'post',
    data: data,
  })
}

export function deleteDisease(id){
  return request({
    url: 'disease/deleteDisease/' + id,
    method: 'get'
  })
}

export function updateDisease(data){
  return request({
    url: 'disease/updateDiseaseMsg',
    method: 'post',
    data: data,
  })
}

